package com.example.tse.rbhttpservice.service.moments.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.moments.model.MomentsHomeGetHomepageMomments;
/**
 * 获取个人主页数据，默认获取当前用户的主页
 * @author wliu
 * edit tse
 */
public class MomentsHomeGetHomepageResponse extends RudderResponse{
    
    private String memberId = "";
		
    
    private String nickname = "";
		
    
    private String avatar = "";
		
    
    private String followNum = "";
		
    
    private String followedNum = "";
		
    
    private List<MomentsHomeGetHomepageMomments> momments = new ArrayList<MomentsHomeGetHomepageMomments>();
		
    
    private String sex = "";
		
    
    private String isFollowed = "";
		
	
    /**
     * @return memberId
     */	
    public String getMemberId() { 
	    return this.memberId;
    };
	
	/**
     * @return memberId
     */	
    public void setMemberId(String memberId) { 
        this.memberId = memberId;
    };
    
    /**
     * @return nickname
     */	
    public String getNickname() { 
	    return this.nickname;
    };
	
	/**
     * @return nickname
     */	
    public void setNickname(String nickname) { 
        this.nickname = nickname;
    };
    
    /**
     * @return avatar
     */	
    public String getAvatar() { 
	    return this.avatar;
    };
	
	/**
     * @return avatar
     */	
    public void setAvatar(String avatar) { 
        this.avatar = avatar;
    };
    
    /**
     * @return followNum
     */	
    public String getFollowNum() { 
	    return this.followNum;
    };
	
	/**
     * @return followNum
     */	
    public void setFollowNum(String followNum) { 
        this.followNum = followNum;
    };
    
    /**
     * @return followedNum
     */	
    public String getFollowedNum() { 
	    return this.followedNum;
    };
	
	/**
     * @return followedNum
     */	
    public void setFollowedNum(String followedNum) { 
        this.followedNum = followedNum;
    };
    
    /**
     * @return momments
     */	
    public List<MomentsHomeGetHomepageMomments> getMomments() { 
	    return this.momments;
    };
	
	/**
     * @return momments
     */	
    public void setMomments(List<MomentsHomeGetHomepageMomments> momments) { 
        this.momments = momments;
    };
    
    /**
     * @return sex
     */	
    public String getSex() { 
	    return this.sex;
    };
	
	/**
     * @return sex
     */	
    public void setSex(String sex) { 
        this.sex = sex;
    };
    
    /**
     * @return isFollowed
     */	
    public String getIsFollowed() { 
	    return this.isFollowed;
    };
	
	/**
     * @return isFollowed
     */	
    public void setIsFollowed(String isFollowed) { 
        this.isFollowed = isFollowed;
    };
    
	
        
    private static void filterFor(MomentsHomeGetHomepageMommentsTags moments) {
        if (moments.getX() == null) {
            moments.setX("");
        }
        if (moments.getY() == null) {
            moments.setY("");
        }
        if (moments.getTitle() == null) {
            moments.setTitle("");
        }
    }
        
    private static void filterFor(MomentsHomeGetHomepageMomments moments) {
        if (moments.getMomentId() == null) {
            moments.setMomentId("");
        }
        if (moments.getMemberId() == null) {
            moments.setMemberId("");
        }
        if (moments.getNickname() == null) {
            moments.setNickname("");
        }
        if (moments.getAvatar() == null) {
            moments.setAvatar("");
        }
        if (moments.getIsFollowed() == null) {
            moments.setIsFollowed("");
        }
        if (moments.getIsLiked() == null) {
            moments.setIsLiked("");
        }
        if (moments.getIsDeleted() == null) {
            moments.setIsDeleted("");
        }
        if (moments.getLikeNum() == null) {
            moments.setLikeNum("");
        }
        if (moments.getContent() == null) {
            moments.setContent("");
        }
        if (moments.getMainPic() == null) {
            moments.setMainPic("");
        }
        if (moments.getShareLink() == null) {
            moments.setShareLink("");
        }
        if (moments.getCreateTime() == null) {
            moments.setCreateTime("");
        }
        if (moments.getShareTitle() == null) {
            moments.setShareTitle("");
        }
        if (moments.getShareDescription() == null) {
            moments.setShareDescription("");
        }
        if (moments.getTags() == null) {
            moments.setTags(new ArrayList<MomentsHomeGetHomepageMommentsTags>());
        } else {
            for (MomentsHomeGetHomepageMommentsTags item : moments.getTags()) {
                filterFor(item);
            }
        }
    }
        
    public static void filter(MomentsHomeGetHomepageResponse moments) {
        if (moments.getMemberId() == null) {
            moments.setMemberId("");
        }
        if (moments.getNickname() == null) {
            moments.setNickname("");
        }
        if (moments.getAvatar() == null) {
            moments.setAvatar("");
        }
        if (moments.getFollowNum() == null) {
            moments.setFollowNum("");
        }
        if (moments.getFollowedNum() == null) {
            moments.setFollowedNum("");
        }
        if (moments.getMomments() == null) {
            moments.setMomments(new ArrayList<MomentsHomeGetHomepageMomments>());
        } else {
            for (MomentsHomeGetHomepageMomments item : moments.getMomments()) {
                filterFor(item);
            }
        }
        if (moments.getSex() == null) {
            moments.setSex("");
        }
        if (moments.getIsFollowed() == null) {
            moments.setIsFollowed("");
        }
    }
}
